package com.example.ems.controller;/**
 * @Auther: accp
 * @Date: 2020/8/28 19:55
 * @Description:
 */

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @Title: TestController
 * @ProjectName ems
 * @author accp
 * @time 2020/8/28 19:55
 */
@Controller
@RequestMapping("/test")
public class TestController {

    @GetMapping("/index")
    public @ResponseBody String getIndex(){
        return " hello spring boot ";
    }
    @GetMapping("/gethello")
    public String getHello(){
        return "hello";
    }
}
